﻿using System;
using System.Data;
using System.Collections.Generic;
using NetDiskPRJ.Model;
namespace NetDiskPRJ.BLL
{
    /// <summary>
    /// 通用类
    /// </summary>
    public class Common
    {
        private readonly NetDiskPRJ.DAL.Common commonDAL = new NetDiskPRJ.DAL.Common();
        public Common()
        { }
        
        /// <summary>
        /// 根据sql语句查询数据
        /// <creator>sunlj</creator>
        /// <date>2013-06-27</date>
        /// </summary>
        /// <param name="SQLSyntax"></param>
        /// <returns></returns>
        public DataSet getListBySql(string SQLSyntax)
        {
           return commonDAL.getListBySql(SQLSyntax);
        }

        /// <summary>
        /// 根据EDI文件更新数据库
        /// <creator>sunlj</creator>
        /// <date>2013-6-28</date>
        /// </summary>
        /// <param name="rows"></param>
        public void UpdateByEDI(DataRow[] rows, string filePath)
        {
            commonDAL.UpdateByEDI(rows, filePath);
        }
    }
}
